package com.cfushn.ddd.catchlog;

public class ResponseHandlerFactory {

    public static ErrorResponseHandlerI get() {
        if (ApplicationContextHelper.getBean(ErrorResponseHandlerI.class) != null) {
            return ApplicationContextHelper.getBean(ErrorResponseHandlerI.class);
        }
        return new DefaultErrorResponseHandler();
    }
}
